package tpf.designer.pattern.course6.behavior_pattern1.homework.exercise3;

import org.junit.Test;

public class Client {
    @Test
    public void test3(){
        Message message = new Message();
        message.setOrder(2);

        //组装责任连
        MessageHandler messageHandlerA = new MessageHandlerA();
        MessageHandler messageHandlerB = new MessageHandlerB();

        messageHandlerA.setSuccessor(messageHandlerB);

        messageHandlerA.handlerMessage(message);
    }
}
